package org.jeecg.modules.util;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class Log {
	private Log(){}
	public static void debug(Class<?> classOfT,Exception ex){
		debug(classOfT,ex.getMessage());
	}
	
	public static void debug(Class<?> classOfT, String errormsg){
		Logger logger  =  LoggerFactory.getLogger(classOfT);
		logger.debug(errormsg);
	}
	
	public static void info(Class<?> classOfT,Exception ex){
		info(classOfT,ex.getMessage());
	}
	
	public static void info(Class<?> classOfT, String errormsg){
		Logger logger  =  LoggerFactory.getLogger(classOfT);
		logger.info(errormsg);
	}

	public static void error(Class<?> classOfT,Exception ex){
		error(classOfT,ex.getMessage());
	}
	
	public static void error(Class<?> classOfT, String errormsg){
		Logger logger  =  LoggerFactory.getLogger(classOfT);
		logger.error(errormsg);
	}
	
}
